package com.youlai.sale.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.youlai.common.base.MybatisBaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.persistence.*;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

/**
 * 销售产品表(bee_sale_item)实体类
 *
 * @author xiamw
 * @since 2024-01-25 19:37:25
 * @description 由 Mybatisplus Code Generator 创建
 */
@NoArgsConstructor
@Schema(description ="销售-销售产品信息")
@Data
@TableName("bee_sale_item")
public class SaleItemEntity extends MybatisBaseEntity {
    @Transient
    private static final long serialVersionUID = 1L;

    @Schema(description ="主键ID")
    @TableId(type = IdType.INPUT)
	private Long saleItemId;
    /**
     * 客户编号 LPK
     */
    private String customerNo;
    /**
     * 货号 LPK
     */
    private String itemNo;
    /**
     * 客户品号
     */
    private String sitem;
    /**
     * 币种
     */
    private String currency;
    /**
     * 销售员
     */
    private String salesmanNo;
    /**
     * 价格
     */
    private Double price;

    @TableField(exist = false)
    private String currencyName;

    @TableField(exist = false)
    private String itemName;

    @TableField(exist = false)
    private String customerName;
}